//该文件是电影路由模块

//1.首页的路由
import Films from "@/views/Film/Films.vue"
import NowPlaying from "@/views/Film/NowPlaying.vue"
import ComingSoon from "@/views/Film/ComingSoon.vue"
import Detail from "@/views/Film/Detail.vue"

const filmsRoutes = [
  
 { path: '/films', component: Films,
 //指定嵌套路由
 children: [
   { path: 'nowPlaying', component: NowPlaying },
   {path: 'comingsoon',component:ComingSoon}
           ]
 },
   //电影详情页
   { path: '/film/:film_id', component: Detail },
];

export default filmsRoutes